home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / BIPORT.H < prev    next >
C/C++ Source or Header  |  1993-04-05  |  845b  |  35 lines

  1. /*
  2. **  BIPORT.H - Port TC/TC++/BC++ code using register pseudovariables
  3. **
  4. **  public domain by Bob Stout
  5. */
  6.  
  7. #include <dos.h>
  8.  
  9. extern union  REGS  BIP_regs_;
  10. extern struct SREGS BIP_sregs_;
  11.  
  12. #define _AX BIP_regs_.x.ax
  13. #define _BX BIP_regs_.x.bx
  14. #define _CX BIP_regs_.x.cx
  15. #define _DX BIP_regs_.x.dx
  16. #define _AH BIP_regs_.h.ah
  17. #define _AL BIP_regs_.h.al
  18. #define _BH BIP_regs_.h.ah
  19. #define _BL BIP_regs_.h.al
  20. #define _CH BIP_regs_.h.ah
  21. #define _CL BIP_regs_.h.al
  22. #define _DH BIP_regs_.h.ah
  23. #define _DL BIP_regs_.h.al
  24. #define _SI BIP_regs_.x.si
  25. #define _DI BIP_regs_.x.di
  26. #define _CF BIP_regs_.x.cflag
  27. #define _FF BIP_regs_.x.flags
  28. #define _ES BIP_sregs_.es
  29. #define _CS BIP_sregs_.cs
  30. #define _SS BIP_sregs_.ss
  31. #define _DS BIP_sregs_.ds
  32. #define regload_() segread(&BIP_sregs_)
  33.  
  34. unsigned _pascal geninterrupt(int);
  35.